/**
 * 选择课程
 * @param selectType input类型 radio checkbox
 * @param type 选择课程用途 1.普通选择课程(含套餐) 2.套餐选择课程
 * @param packageId 套餐id
 * @param classId
 * @param subjectIds 专业ids
 */
function selectPackage(selectType, subjectIds) {
    parent.layer.open({
        type: 2,
        area: winArea,
        btn: ['选择', '取消'],
        content: baseloaction + "/admin/course/package/selectPackageCourseList?selectType=" + selectType + '&subjectIds=' + subjectIds,
        maxmin: true,
        shade: [0.3, '#000'],
        shadeClose: false,
        title: '选择套餐',
        yes: function (index, layero) {
            var _iframe = layero.find("iframe:visible");
            var iframeName = _iframe[0].name;
            var course = parent.frames[iframeName].getSelectPackage();
            if (course) {
                var currentIframeName = contentMainIframeName();
                parent.frames[currentIframeName].selectPackageCallback(course);
                parent.layer.close(index);
            }
        }
    });
}